﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EA.DTO;
using EA.BA;

namespace EAAdmin
{
    public partial class Logout : WebPage
    {
        override
        protected void Load(object sender, EventArgs e)
        {
            MemberBA memberBA = new MemberBA();
            int ID = (int)Session["ID"];
            memberBA.UpdateLastLogOnDate(ID);
            Session.RemoveAll();
            Response.Redirect("/Login.aspx");
        }
    }
}